﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace ESSManageService.Model.DBModels.Info
{
    /// <summary>
    /// 培训记录表   
    /// </summary>
    [SugarTable("Training_Records_Info", tableDescription: "培训记录表")]
    public class TrainingRecordInfo : DbBase
    {
        /// <summary>
		/// 主键ID
		/// <summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "id", IsIdentity = true)]
        public long id { get; set; }

        /// <summary>
        /// 培训记录ID
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string training_id { get; set; }

        /// <summary>
        /// 课程ID
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string course_id { get; set; }

        /// <summary>
        /// 学员ID
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string trainee_id { get; set; }

        /// <summary>
        /// 教练员ID
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string instructor_id { get; set; }

        /// <summary>
        /// 开始时间
        /// <summary>
        [SugarColumn( IsNullable = true)]
        public DateTime start_time { get; set; }

        /// <summary>
        /// 结束时间
        /// <summary>
        [SugarColumn( IsNullable = true)]
        public DateTime end_time { get; set; }

        /// <summary>
        /// 培训结束原因
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string end_reason { get; set; }

        /// <summary>
        /// 培训状态(1-进行中2-已暂停3-已完成)
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string status { get; set; }

        /// <summary>
        /// 是否启用新手指引（0-否1-是）
        /// <summary>
        [SugarColumn(Length = 200, IsNullable = true)]
        public string enable_guidance { get; set; }
    }
}
